package com.acme.ioniolab.serialization.implementations;

import com.acme.ioniolab.serialization.Serializer;
import com.thoughtworks.xstream.XStream;

public class XstreamSerializer implements Serializer {
	XStream xs = new XStream();
	@Override
	public String getType() {
		return "Xstream";
	}

	@Override
	public Object serialize(Object object) {
		return xs.toXML(object);
	}

	@Override
	public Object deserialize(Object object) {
		return xs.fromXML((String) object);
	}

}
